package com.example.wacoffee_manage.Mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PaymentMapper {

    @Update("update orders set status = 1 where id = #{orderId}")
    void pay(int orderId);

    @Update("update orders set status = 2 where id = #{orderId}")
    void cancelPay(int orderId);
}
